package com.jy.modules.cims.data.common.dao;

import java.util.List;
import java.util.Map;

import com.jy.modules.cims.data.common.dto.TCMmCreditPackageDTO;
import com.jy.platform.core.mybatis.MyBatisRepository;
/**
 * @classname: TCMmCreditPackageDao
 * @description: 定义  债权包 持久层 接口
 * 通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 * 方法名称必须与Mapper.xml中保持一致.
 * @author:  zhiqiang
 */
@MyBatisRepository
public interface TCMmCreditPackageDao {
    
    /**
     * @author zhiqiang
     * @description: 分页查询债权包
     * @date 2015-01-07 16:20:41
     * @param searchParams
     * @return
     */
    public List<TCMmCreditPackageDTO> searchTCMmCreditPackageByPaging(Map<String, Object> searchParams) ;
    
    /**
     * @author zhiqiang
     * @description:查询对象债权包
     * @date 2015-01-07 16:20:41
     * @param searchParams
     * @return
     */
    public List<TCMmCreditPackageDTO> searchTCMmCreditPackage(Map<String,Object> searchParams);

    /**
     * @author zhiqiang
     * @description:查询对象债权包
     * @date 2015-01-07 16:20:41
     * @param id
     * @return
     */
    public TCMmCreditPackageDTO findTCMmCreditPackageByPrimaryKey(String id);
    
    /**
     * @author zhiqiang
     * @description: 新增对象债权包
     * @date 2015-01-07 16:20:41
     * @param paramMap
     * @return
     */
    public int insertTCMmCreditPackage(Map<String, Object> paramMap);
    
    /**
     * @author zhiqiang
     * @description: 更新对象债权包
     * @date 2015-01-07 16:20:41
     * @param paramMap
     */
    public void updateTCMmCreditPackage(Map<String, Object> paramMap);
    
    /**
     * @author zhoupeng
     * @description: 更新对象债权包
     * @date 2016-05-09 16:20:41
     * @param paramMap
     */
    public void updateTCMmCreditPackageByPackageName(Map<String, Object> paramMap);
     
    /**
     * @author zhiqiang
     * @description: 按主键删除债权包
     * @date 2015-01-07 16:20:41
     * @param ids
     * @return
     */ 
    public void deleteTCMmCreditPackageByPrimaryKey(Map<String, Object> paramMap);
    
    /**
	 * 验证包是否可以删除
	 * @param paramMap
	 * @throws Exception
	 */
    public List<TCMmCreditPackageDTO> deleteTCMmCreditPackageIsExsit(Map<String, Object> paramMap);
    
    
}
